.search_field {
  position: relative;
  margin-bottom: $default-margin;
  height: 29px;
}

.search_field .icon,
.js_filter_field_box .icon {
  position: absolute;
  left: 8px;
  top: 8px;
}

.js_filter_field_box {
  position: absolute;
  right: 4px;
  top: 8px;

  .js_filter_field {
    width: 220px;
    text-align: left;
    border-radius: $default-border-radius;
    padding: 3px 24px 3px 28px;
    height: 29px;
    margin: 0;
  }

  label {
    font-size: 10px;
    display: block;
    text-align: center;
    padding-top: 3px;
  }
}

.search_field_clear,
.js_filter_field_clear {
  display: none;
  width: 16px;
  height: 16px;
  line-height: 16px;
  @extend .icon-cross;
  position: absolute;
  right: 8px;
  top: 7px;
  text-decoration: none !important;
}

#tags_tag_list {
  text-align: left;
  padding-top: 5px;

  ul.tags {
    max-height: 10em;
    padding: 1px;
    margin: 0;
    margin-top: 2px;
    overflow: auto;
    text-align: left;
    list-style-type: none;

    li {
      background-color: $medium-gray;
      padding: 4px;
      margin: 0 0 4px 0;
      position: relative;
      @extend %rounded-border;

      &.odd { background-color: #eaf3f9 }

      input {
        position: absolute;
        top: 3px;
        left: 4px;
      }

      label {
        display: inline-block;
        margin-left: 2em;
        line-height: 1.6em;
      }
    }
  }

  .js_filter_field_box {
    position: relative;
    top: 0;
    right: 0;
    margin: 0;

    .js_filter_field {
      width: 100%;
    }

    label {
      display: none
    }
  }

  .js_filter_field_clear {
    right: 4px;
  }
}

#toolbar,
#overlay_toolbar {

  .search_form,
  .js_filter_field_box {
    position: absolute;
    top: 0;
    right: 0;
    height: 45px;
  }

  .search_field {
    height: inherit;
  }

  .search_input_field {
    width: 150px;
    height: inherit;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    transition: width $transition-duration ease-in-out;
    border-radius: 0;
    padding: 8px 16px 8px 32px;
    margin: 0;
    text-align: left;
    box-shadow: none;
    -webkit-appearance: none;

    &:focus {
      width: 250px;
    }
  }

  .search_field .icon,
  .js_filter_field_box .icon,
  .search_field_clear,
  .js_filter_field_clear {
    top: 16px;
  }
}
